package com.miqtech.master.wyrecorder.entity;

/**
 * Created by arvin on 2016/11/23.
 */

import android.os.Parcel;
import android.os.Parcelable;

import com.google.gson.annotations.SerializedName;


/**
 * Created by xiaoyi on 2016/9/23.
 */
public class Gift implements Parcelable {
    @SerializedName("count_down")
    private String countDown;
    private int id;
    private int choosed;
    private String name;
    private int price;
    private String icon;
    private String bait;//鱼饵
    @SerializedName("yuer_coin")
    private String yuerCoin;  //鱼币
    private int num;

    private String userId;

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    @SerializedName("no_frame_icon")
    private String noFrameIcon;

    public String getNoFrameIcon() {
        return noFrameIcon;
    }

    public void setNoFrameIcon(String noFrameIcon) {
        this.noFrameIcon = noFrameIcon;
    }

    public String getYuerCoin() {
        return yuerCoin;
    }

    public void setYuerCoin(String yuerCoin) {
        this.yuerCoin = yuerCoin;
    }

    public String getBait() {
        return bait;
    }

    public void setBait(String bait) {
        this.bait = bait;
    }


    public int getNum() {
        return num;
    }

    public void setNum(int num) {
        this.num = num;
    }

    public int getChoosed() {
        return choosed;
    }

    public void setChoosed(int choosed) {
        this.choosed = choosed;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getCountDown() {
        return countDown;
    }

    public void setCountDown(String countDown) {
        this.countDown = countDown;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getPrice() {
        return price;
    }

    public void setPrice(int price) {
        this.price = price;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(this.id);
        dest.writeString(this.name);
        dest.writeInt(this.price);
        dest.writeString(this.icon);
        dest.writeString(this.bait);
        dest.writeString(this.yuerCoin);
        dest.writeInt(this.num);
        dest.writeInt(this.choosed);
        dest.writeString(this.countDown);
        dest.writeString(this.noFrameIcon);
        dest.writeString(this.userId);
    }

    public Gift() {
    }

    protected Gift(Parcel in) {
        this.id = in.readInt();
        this.name = in.readString();
        this.price = in.readInt();
        this.icon = in.readString();
        this.bait = in.readString();
        this.yuerCoin = in.readString();
        this.num = in.readInt();
        this.choosed = in.readInt();
        this.countDown = in.readString();
        this.noFrameIcon = in.readString();
        this.userId = in.readString();
    }

    public static final Parcelable.Creator<Gift> CREATOR = new Parcelable.Creator<Gift>() {
        @Override
        public Gift createFromParcel(Parcel source) {
            return new Gift(source);
        }

        @Override
        public Gift[] newArray(int size) {
            return new Gift[size];
        }
    };
}

